/*
* Task4Arrays
*
* r1
*
* GNU General Public License v3.0
*/

package com.acme;

public class Task4Arrays {
	public static void main(String[] args) {
		int array[] = new int[]{3,9,7,3,7,9,7,9,3,7};
		int count3 = 0, count7 = 0, count9 = 0;
		
		for(int num : array) {
			if(num == 3) {
				count3++;
			} else if(num == 7) {
				count7++;
			} else if(num == 9) {
				count9++;
			}
		}
		
		System.out.println("Number of 3: " + count3);
		System.out.println("Number of 7: " + count7);
		System.out.println("Number of 9: " + count9);
	}
}
